// public/uploads/avatar
const path = require('path')

const finalPath = path.join('public', 'uploads', 'avatar')

console.log(finalPath)

// __dirname获取的是当前文件的绝对路径
console.log(path.join(__dirname, '01-helloworld.js'))